﻿using System;
using System.Collections;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Xml;

using Aulac.Global.Enums; using Aulac.Global.Data; using Aulac.Global.Common; using Aulac.Global.Xml;
using Aulac.Rsc.Ems; using Aulac.Rsc.Ems.Tags;
using Aulac.Srv.Db.Provider; using Aulac.Srv.Db.Connect;
using Aulac.Srv.Db.Data.Catalogs;

namespace Aulac.Srv.Db.Data.Ems.Systems
{
	public partial class CompanyMng: DbDataCatalogs
	{
		public CompanyMng(IDbAulacConnect p_Db ) :
            base(p_Db, TableNames.Sys_CompanyInfo, tagSystem.Company.HspName,
            new string[]{tagSystem.Company.HspName}
            )
        {
        }

        protected override void OnGetListItem(ref DataTable pDataReturn, XmlDataDocument xmlParams)
        {
            sqlQuery = "SELECT TOP 1 * FROM Sys_CompanyInfo";
            DbDataProvider.ExecuteReaderDataToTable(mDbCmd, sqlQuery, ref pDataReturn);
        }
	}
}
